#include<iostream>
#include<cmath>
#include<iomanip>

using namespace std;

int main(){

    // 设置全局输出精度为小数点后六位
    cout << fixed << setprecision(6);

    double a, b, c;
    cin >> a >> b >> c;
    double _delta = (b * b - 4 * a * c);

    // 输入abc计算判别式
    if (_delta > 0) {
        double root1 = (-b + sqrt(_delta)) / (2 * a);
        double root2 = (-b - sqrt(_delta)) / (2 * a);
        cout << root1 << endl;
        cout << root2 << endl;
    }
    else if (_delta == 0) {
        double root = -b / (2 * a);
        cout << root << endl;
    }
    else {
        cout << "Error" << endl;
    }
    return 0;
}
